<?php $this->load->view('head');?>
<!--content start-->
<style type="text/css">
	.bagu-search-box{ margin:0 auto;width:100%;border:1px #CCC dashed; height:100px; font-size:14px;}
	.bagu-search-box form{ height:40px; margin-top:10px; margin-left:10px;}
	.text_input{ height:20px; line-height:20px; width:200px; margin-left:20px; margin-right:20px; border:1px #CCC solid}
	.submit_input{ height:23px;font-size:14px; width:60px; border:1px #999 solid; background:#CCC;background:url(<?=__THEMES__?>image/search.gif) 0px 3px no-repeat; padding-left:12px; color:#999; cursor:pointer}
</style>
<div id="bagu-content">
	<div class="bagu-search-box">
    	<form action="" method="post" >
        	用户账号:<input type="text" name="account" value="<?=!empty($account)?$account:'';?>" id="account" class="text_input" /> <input type="submit" name="submit" value="查找" class="submit_input" />
        </form>
        <form action="" method="post" >
        	手机号码:<input type="text" name="mobile" value="<?=!empty($mobile)?$mobile:'';?>" id="mobile" class="text_input" /> <input type="submit" name="submit" value="查找" class="submit_input"/>
        </form>
    </div>
    <h4>会员列表</h4>
    <table id="table_list" cellspacing="0" width="100%" class="list_table" style="border:#CCC 1px dashed; font-size:14px;">
        <tr style="display:block; height:35px; line-height:35px;">
            <th style="width:50px; text-align:center">排序</th>
            <th style="width:80px; text-align:center">客户类型</th>
            <th style="width:120px; text-align:center">账号</th>
            <th style="width:80px; text-align:center">姓名</th>
            <th style="width:40px; text-align:center">性别</th>
            <th style="width:100px; text-align:center">联系方式</th>
            <th style="width:150px; text-align:center">E-Mail</th>
            <th style="width:80px; text-align:center">QQ号码</th>
            <th style="width:100px; text-align:center">阴历生日</th>
            <th style="width:100px; text-align:center">阳历生日</th>
            <th style="width:80px; text-align:center">操作</th>
            <th style="width:100px; text-align:center">入库时间</th>
            <th style="width:80px; text-align:center">入库人</th>
        </tr>
        <?php if(!empty($member['data'])):?>
        <?php foreach($member['data'] as $key=>$val):?>
        <tr style="height:30px; line-height:30px; border-top:1px #CCC dashed; display:block">
        	<td style="width:50px; text-align:center"><?=$key+1?></td>
            <td style="width:80px; text-align:center"><?=$val['type']?></td>
            <td style="width:120px; text-align:center"><?=$val['account']?></td>
            <td style="width:80px; text-align:center"><?=$val['name']?></td>
            <td style="width:40px; text-align:center"><?=$val['sex']==1?'男':'女';?></td>
            <td style="width:100px; text-align:center"><?=$val['mobile']?></td>
            <td style="width:150px; text-align:center"><?=$val['email']?></td>
            <td style="width:80px; text-align:center"><?=$val['qq']?></td>
            <td style="width:100px; text-align:center"><?=$val['lyear'].'-'.$val['lbirthday']?></td>
            <td style="width:100px; text-align:center"><?=$val['syear'].'-'.$val['sbirthday']?></td>
            <td style="width:80px; text-align:center"><a href="<?=site_url('member/detail').'/'.$val['id']?>">详细</a></td>
            <td style="width:100px; text-align:center"><?=!empty($val['datetime'])?date('Y-m-d',$val['datetime']):''?></td>
            <td style="width:80px; text-align:center"><?=$val['operator']?></td>
        </tr>
        <?php endforeach;?>
        <?php else:?>
        	暂时没有用户
        <?php endif;?>
    </table>
    <?=!empty($member['html'])?$member['html']:''?>
</div>
<!--content end-->	
<?php $this->load->view('footer');?>